package nowCoder;

import java.util.Scanner;

public class HJ29 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String x = in.next();
        char[] xx = x.toCharArray();
        for (int i = 0; i < x.length(); i++) {
            int c = xx[i];
            if (c >= 65 && c < 90){
                xx[i] = (char)(c+33) ;
            } else if (c >= 97 && c < 122) {
                xx[i] = (char)(c-31) ;
            }else if (c == 57){
                xx[i] = (char)48 ;
            }else if (c == 122){
                xx[i] = 'A' ;
            }else if (c == 90){
                xx[i] = 'a' ;
            }else {
                xx[i] = (char)(c+1) ;
            }
        }
        String y = in.next();
        char[] yy = y.toCharArray();
        for (int i = 0; i < y.length(); i++) {
            int c = yy[i];
            if (c > 65 && c <= 90){
                yy[i] = (char)(c+31) ;
            } else if (c > 97 && c <= 122) {
                yy[i] = (char)(c-33) ;
            }else if (c == 48){
                yy[i] = (char)57 ;
            }else if (c == 65){
                yy[i] = 'z';
            }else if (c == 97){
                yy[i] = 'Z';
            }else {
                yy[i] = (char)(c-1) ;
            }
        }
        for (char c : xx) {
            System.out.print(c);
        }
        System.out.println();
        for (char c : yy) {
            System.out.print(c);
        }
    }
}
